package com.erp.auto.controller;


import com.erp.auto.domain.ErpAutoUnshelfProductLog;
import com.erp.auto.service.ErpAutoUnshelfProductLogService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.common.core.domain.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 自动化下架商品表
 *
 * @author WXX
 * @date 2024-01-29 14:04:36
 */
@RestController
@AllArgsConstructor
@RequestMapping("/kjerp/erpAutoUnshelfProductLog" )
public class ErpAutoUnshelfProductLogController {

    private final ErpAutoUnshelfProductLogService erpAutoUnshelfProductLogService;

   @GetMapping("/getList")
    public R<Object> getList(@RequestParam(defaultValue = "1") Integer pageNum,
                             @RequestParam(defaultValue = "10") Integer pageSize,
                             ErpAutoUnshelfProductLog log) {
       PageHelper.startPage(pageNum, pageSize);
       List<ErpAutoUnshelfProductLog> list = erpAutoUnshelfProductLogService.selectList(log);
       PageInfo<ErpAutoUnshelfProductLog> pageInfo = new PageInfo<>(list);
       return R.ok(pageInfo);
   }

}
